-
Notifications
You must be signed in to change notification settings - Fork 243
[Misc] Code clean up #1630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Misc] Code clean up #1630
Conversation
cd9c3d2
to
c845131
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1630 +/- ##
===========================================
+ Coverage 27.39% 54.48% +27.09%
===========================================
Files 56 79 +23
Lines 6191 9925 +3734
===========================================
+ Hits 1696 5408 +3712
- Misses 4495 4517 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
894b23f
to
d619af8
Compare
c333319
to
0cf349a
Compare
@Yikun @ganyi1996ppo @jianzs please help review. Thanks. This PR is mainly for clear code maintainance |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
3be4aaf
to
d6e5569
Compare
@@ -317,19 +318,6 @@ def __init__(self, vllm_config: VllmConfig, device: torch.device): | |||
reversed( | |||
self.vllm_config.compilation_config.cudagraph_capture_sizes)) | |||
|
|||
# NOTE: Pre-construct a mask matrix to improve the efficiency of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the note?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PAGED_ATTENTION_MASK_LEN should be moved to env.py. We can explain more there. What's more, I really don't like the mask builder in common code. I'm working on refactor it. Let me do it in the next PR.
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but frankly speaking, I don’t like putting multiple changes in one PR.
@jianzs @ganyi1996ppo Pls also take a look |
Split to few PR for better review |
Uh oh!
There was an error while loading. Please reload this page.